-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make optimistic requests/IOUs/expense reports “hidden” #29681
Make optimistic requests/IOUs/expense reports “hidden” #29681
Conversation
…ture/29593-optimistic-money-requests-hidden
@mananjadhav Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosWebiou.movexpense.movMobile Web - ChromeMobile Web - SafariDesktopiOSAndroid |
Offline tests well, but not when online. |
I think it's fine to go ahead and merge this ahead of the back-end. It won't cause any problems. Do you agree @mountiny? |
Online this works same as on main right? @situchan |
right And can you also check #29681 (comment)? |
Is this the admin's workspace chat right? I guess that this should be handled in another PR which handle the GBR |
Correct. Admin is paying his own request on his workspace |
Great, thanks for quick testing, all yours @puneetlath |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Finished the backend changes and tested with this PR, I think there is one thing we can address here (also will discuss in slack):
- When you visit the IOU/ expense report and you dont comment and leave its correctly still hidden. However, when you comment and leave its hidden and only stays around when you go back. Thats because we do not change this optimistically.
- Could you please change this so when you Add comment in a thead and its set to notification preferences hidden it will change it to Always? Thats how the logic works in backend so we will get rid of this backend forth.
- There is a backend bug that I am not getting the notification about the report preview in the DM chat, this is not bug for this PR seems like we might be missing some data because of the preferences and we dont push the report preview
Screen.Recording.2023-10-17.at.22.07.17.mp4
…ture/29593-optimistic-money-requests-hidden
@mountiny, @puneetlath, I know 2 ways how to apply the
WDYT? |
Should we check that a report is already |
I think we can go with approach one, but I asked for confirmation here.
Good question, yes, we should. We should only change the notification preference in the case where it is currently hidden. If the user has set it to something else (e.g. daily) we won't change it. |
Sounds good and yeah we should check if its hidden before changing it |
…ture/29593-optimistic-money-requests-hidden
@mountiny, @puneetlath, @situchan, I've implement the 1st approach - 606a6a3. Update.to.always.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, great job! One NAB question
@puneetlath we want to hold this, right?
…ture/29593-optimistic-money-requests-hidden
This reverts commit d3daf61.
@puneetlath, @mountiny, can we move forward here? |
Soon |
…ture/29593-optimistic-money-requests-hidden
…ture/29593-optimistic-money-requests-hidden
I have to inform that starting tomorrow I have a short vocation until next Monday (6.11.2023). Feel free to left any comments, I will address them. See you soon 😉 Btw, I've synced with the latest |
…ture/29593-optimistic-money-requests-hidden
@mountiny, can we move forward here? |
…ture/29593-optimistic-money-requests-hidden
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can right @puneetlath?
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/puneetlath in version: 1.3.96-6 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.96-15 🚀
|
🚀 Deployed to staging by https://github.com/puneetlath in version: 1.3.98-0 🚀
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.98-5 🚀
|
Details
The PR makes Expense reports, IOU reports, and Individual requests to use the same
hidden
setting that we use for threads so that they will be hidden from the LHN by default.Fixed Issues
$ #29593
PROPOSAL: N/A
Tests
Same as "Offline tests".
Offline tests
We are testing optimistic data, therefore we are offline.
Also, the backend is not ready yet, once you get online, you can see these "hidden" reports in LHN.
IOU report
Expense report
Individual report
QA Steps
Same as "Offline tests".
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android.Expense.mp4
Android.Individual.mp4
Android.IOU.mp4
Android: mWeb Chrome
Android.Chrome.Expense.mp4
Android.Chrome.Individual.mp4
Android.Chrome.IOU.mp4
iOS: Native
IOS.Expense.mp4
IOS.Individual.mp4
IOS.IOU.mp4
iOS: mWeb Safari
IOS.Safari.Expense.mp4
IOS.Safari.Individual.mp4
IOS.Safari.IOU.mp4
MacOS: Chrome / Safari
Chrome.Expense.mp4
Chrome.Individual.mp4
Chrome.IOU.mp4
MacOS: Desktop
Desktop.Expense.Individual.mp4
Desktop.IOU.mp4